﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JMY_IDAL;
namespace JMY_BLL
{
    public class BaseBLL<T> where T:JMY_Models.JMY_BaseModel,new()
    {
        protected JMY_IDAL.JMY_IBaseDAL<T> Dal;
        /// <summary>
        /// 通过构造函数调用单例工厂实例化对应的产品子类
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public BaseBLL(string type)
        {
            Dal = JMY_Factory.DataAccess<JMY_IDAL.JMY_IBaseDAL<T>>.CreateDAL(type);
        }
        
    

    }
}
